package com.erli.exchange.common.sg.config;

import java.util.List;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@XmlRootElement(name = "tables")
public class TablesInfo {

	@XmlAttribute
	private String database;

	@XmlElement(name = "table")
	private List<TableInfo> tables;

	@XmlTransient
	public String getDatabase() {
		return database;
	}

	@XmlTransient
	public List<TableInfo> getTables() {
		return tables;
	}

}
